package com.wn.service;

import com.wn.service.controller.WorkProduct4;
import com.wn.service.controller.WorkProduct5;
import com.wn.service.controller.WorkProductConfirm;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author yellow Docter
 * @date 2022 -08-31
 * @desc  测试消息的看丢失情况
 */
@SpringBootTest
public class RabbitMqTest04 {

    @Autowired
    private WorkProduct4 workProduct4;

    @Test
    public void demo03(){

        workProduct4.sendMsg(
                "exchange-confirm",
                "confirm",
                "中奖了2000W"
        );

    }

    @Autowired
    private WorkProductConfirm workProductConfirm;

    @Test
    public void sendMst(){

        workProductConfirm.sendMsg(
                "exchange-confirm",
                "confirm",
                "中奖了2000W"
        );

    }

}
